import {
    request
} from "./request";
import qs from "qs";


//  获取文章或视频评论列表
export function listComment(obj) {
    return request({
        url: "ScBaiKe/listComment",
        method: "post",
        data: qs.stringify(obj),
    });
}
//  获取所有文章或视频
export function listAllTopicOrVideo(obj) {
    return request({
        url: "ScBaiKe/listAllTopicOrVideo",
        method: "post",
        data: qs.stringify(obj),
    });
}

//  删除文章或列表评论
export function deleteComment(obj) {
    return request({
        url: "ScBaiKe/deleteComment",
        method: "post",
        data: qs.stringify(obj),
    });
}
//  置顶文章或列表评论
export function setCommentTop(obj) {
    return request({
        url: "ScBaiKe/setCommentTop",
        method: "post",
        data: qs.stringify(obj),
    });
}